package ai

import "fmt"

var first int32 = 0

type MonsterIdleState struct {
}

func (idleState MonsterIdleState) Enter() {
	fmt.Println("enter() MonsterIdleState")
}

func (idleState MonsterIdleState) Exit() {
	fmt.Println("Exit() MonsterIdleState")
}

func (idleState MonsterIdleState) Update() {
	fmt.Println("Update() MonsterIdleState")
}
func (idleState MonsterIdleState) CheckChange() StateInterface {
	fmt.Println("CheckChange() MonsterIdleState")
	first++
	if first == 10 {
		return StateMap[attack]
	}
	return StateMap[idle]
}
